<?php
//向用户发送消息
use yii\helpers\Html;
use yii\widgets\ActiveForm;
?>

<div class="tpl-content-wrapper">

    <div class="row-content am-cf">

        <div class="row">

            <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                <div class="widget am-cf">
                    <div class="widget-head am-cf">
                        <div class="widget-title am-fl">向用户发送信息</div>
                        <div class="widget-function am-fr">
                            <a href="javascript:;" class="am-icon-cog"></a>
                        </div>
                    </div>
                    <div class="widget-body am-fr">
                        <?php $form = ActiveForm::begin([
                            'id' => 'login-form',
                            'method' => 'post',
                            'options' => ['class' => "am-form tpl-form-border-form tpl-form-border-br"],
                            'enableClientValidation' => true,
                            'fieldConfig' => [
                                'template' => "<div class=\"col-lg-5\">{input}</div>\n<div class=\"col-lg-3 am-btn-danger\">{error}</div>",
                            ]
                        ]) ?>

                        <div class="am-form-group">
                            <label for="user-name" class="am-u-sm-3 am-form-label">标题: <span
                                        class="tpl-form-line-small-title">Title</span></label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($message, 'title')->textInput(['class' => 'col-sm-6','placeholder' => '消息标题'])->label(false) ?>
                            </div>
                        </div>


                        <div class="am-form-group">
                            <label for="user-intro" class="am-u-sm-3 am-form-label">信息内容: </label>
                            <div class="am-u-sm-9">
                                <?php echo $form->field($message, 'title')->textarea(['class' => 'col-sm-6', 'placeholder' => "信息内容",'rows' => "10"])->label(false) ?>
                            </div>
                        </div>

                        <div class="am-form-group">
                            <div class="am-u-sm-9 am-u-sm-push-3">
                                <?php echo Html::submitButton('确认发送', ['class' => 'am-btn am-btn-primary', 'name' => 'submit-button']) ?>
                            </div>
                        </div>
                        <?php ActiveForm::end(); ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

